ifneq ($(MAKECMDGOALS),clean)
include ../makeMacros
endif

.PHONY: all clean run

all: 1-src 	2-src 

1-src: 1-src.cpp
	$(CPP) $(CPPFLAGS) $(EXEFLAG)$@ $^	
	@echo "-----Runing" $@ "--begin----------------------------------"
	@$@
	@echo "-----Runing" $@ "--end------------------------------------"
	
2-src: 2-src.cpp
	$(CPP) $(CPPFLAGS) $(EXEFLAG)$@ $^	
	@echo "-----Runing" $@ "--begin----------------------------------"
	@$@
	@echo "-----Runing" $@ "--end------------------------------------"

clean:
	rm -f 1-src 2-src

run:
	@echo "-----Runing" 1-src "--begin----------------------------------"
	1-src
	@echo "-----Runing" 1-src "--end------------------------------------"
	@echo "-----Runing" 2-src "--begin----------------------------------"
	2-src
	@echo "-----Runing" 2-src "--end------------------------------------"
